﻿<Page
    x:Class="ChessApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ChessApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid x:Name="MainFrame_App" Background="Black" Loaded="MainFrame_App_Loaded">
        <Grid.RowDefinitions>
            <RowDefinition Height="67*"/>
            <RowDefinition Height="67*"/>
        </Grid.RowDefinitions>
        <StackPanel x:Name="TopPanel" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Canvas x:Name="canvas_board" Width="200" Height="200" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        </StackPanel>
        <StackPanel x:Name="ControlPanel" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1">
            <StackPanel Orientation="Horizontal">
                <Button x:Name="button_restart" Content="Restart Game" Width="168" Click="button_restart_Click" HorizontalAlignment="Center" Margin="0,0,2,2" Background="Blue" Foreground="White"/>
                <Button x:Name="buttonQuit" Content="Quit" VerticalAlignment="Stretch" Width="168" Margin="2,0,0,2" Click="buttonQuit_Click" Background="Blue" Foreground="White"/>
            </StackPanel>
            <StackPanel x:Name="MiddlePanel"  Orientation="Horizontal" HorizontalAlignment="Stretch">
                <StackPanel x:Name="MiddleLeftPanel" Orientation="Vertical" HorizontalAlignment="Left">
                    <Button x:Name="button_makeMove_white" Content="Make Move for WHITE" Width="168" Click="button_makeMove_white_Click" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Background="Blue" Foreground="White" Margin="0,0,2,0"/>
                    <Button x:Name="button_makeMove_black" Content="Make Move for BLACK" Width="168"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="button_makeMove_black_Click"  Background="Blue" Foreground="White" Margin="0,2,2,0"/>
                </StackPanel>
                <StackPanel x:Name="MiddleRightPanel" Orientation="Horizontal" HorizontalAlignment="Right">
                    <Button x:Name="button_makeMove_automatic" Content="Automatic Move" Click="button_automatic_move" Width="168" VerticalAlignment="Stretch" Margin="2,0,0,0"  Background="Blue" Foreground="White"/>
                </StackPanel>
            </StackPanel>
            <StackPanel x:Name="BottomPanel" Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="340" Height="200">
                <RadioButton x:Name="radioButton_gamemode_humanVShuman" IsChecked="true" Content="Human vs. Human" GroupName="game_mode" Background="Black" Foreground="White"></RadioButton>
                <RadioButton x:Name="radioButton_gamemode_humanVScomputer" Content="Human vs. Computer" GroupName="game_mode"  Background="Black" Foreground="White"></RadioButton>
                <RadioButton x:Name="radioButton_gamemode_computerVScomputer" Content="Computer vs. Computer" GroupName="game_mode" Background="Black" Foreground="White"></RadioButton>
            </StackPanel>
        </StackPanel>
    </Grid>
</Page>
